package com.bootdo.app.common.jwt;


import lombok.EqualsAndHashCode;
import lombok.Setter;
import java.io.Serializable;

/**
  * @auther: Along
  * @description: JWT 信息类
  * @Date: created in 2020/4/5 0:06
  */
@Setter
@EqualsAndHashCode
public class JWTInfo implements Serializable,IJWTInfo {
    private String openId;
    private String userId;
    private String sid;
    private String sessionKey;

    public JWTInfo(String openId, String userId, String sessionKey,String sid) {
        this.openId = openId;
        this.userId = userId;
        this.sessionKey = sessionKey;
        this.sid = sid;
    }

    @Override
    public String getUserSessionKey() {
        return this.sessionKey;
    }

    @Override
    public String getUserSID() {
        return this.sid;
    }

    @Override
    public String getOpenId() {
        return this.openId;
    }



    @Override
    public String getUserId() {
        return userId;
    }


}







